# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""

classmate = ['我','想','你','啦','!','宝贝']
L = len(classmate)
for i in range(0, L):
    if classmate[i] == '宝贝':
#方法1
#        classmate[i] = '妮妮'#替换
#方法2
#        classmate.insert(i, '妮妮')#插入
#        classmate.pop(i+1)#减少
#方法3
#        classmate.append('妮妮')#加入队尾
#        classmate.pop(i)#删掉宝贝
print(classmate, L, i)